import ajax from '@/utils/request'

// 联想菜单
const getsuggestListAPI = ({ keyword }) => {
  // 携带data
  return ajax({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q: keyword
    }
  })
}

// 搜索结果列表
// 联想菜单
const getsearchResultListAPI = ({ keyword, page = 1 }) => {
  // 携带data
  return ajax({
    method: 'GET',
    url: '/v1_0/search',
    params: {
      q: keyword,
      page
    }
  })
}
export {
  getsuggestListAPI,
  getsearchResultListAPI
}
